package threads;

import connection.TCPSecureServerSocket;
import connection.exception.ConnectionResetException;

public class CertcopWebConnectionThread extends Thread{
	
	private TCPSecureServerSocket _tcpSocket;
	
	public CertcopWebConnectionThread(TCPSecureServerSocket socket){
		_tcpSocket = socket;
	}

	
	public void run(){
		try {
			_tcpSocket.isVericop(false);
			_tcpSocket.waitChannelEstablishmentMode();
			
			while(_tcpSocket.isSecureChannelEstablished()){
				
				
				
				
				
				
				
				
			}
			
		} catch (ConnectionResetException e) {
			System.out.println("Ligação com o servidor Web terminada.");
			_tcpSocket.close();
			return;
		}
		
		
	}
}
